class UsersEmails
  attr_accessor :github

  def initialize(github)
    @github = github
  end

  def listEmails()
    @github.get('user/emails')
  end

  def addEmails(emails)
    data = emails.to_json
    puts data
    @github.post('user/emails', data)
  end

  def deleteEmails(emails)
    data = emails.to_json
    @github.delete('user/emails', data)
  end
end